package com.example.wx.common;

public class WxConstant {
    //关注EVENT
    public static final String EVENT_SUBSCRIBE = "subscribe";
    //取消关注EVENT
    public static final String EVENT_UNSUBSCRIBE = "unsubscribe";
    //f:type="click" r:Event=CLICK
    public static final String EVENT_CLICK = "CLICK";
    //文本消息
    public static final String TEXT = "text";
    //图文消息
    public static final String NEWS = "news";

    public static final String XML = "xml";

    //获取access_token接口
    public static final String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";
    //用户授权地址接口
    public static final String AUTHORIZE_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";
    //用户授权回调重定向地址接口
    public static final String AUTHORIZE_REDIRECT_URI = "https://uuc.vivo.xyz";
    //静默授权的scope
    public static final String AUTHORIZE_SCOPE_SNS_API_BASE = "snsapi_base";
    //用户主动授权的scope
    public static final String AUTHORIZE_SCOPE_SNS_API_USERINFO = "snsapi_userinfo";
    //网页code换取access_token接口
    public static final String ACCESS_TOKEN_WEB_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
    //网页拉取用户信息接口
    public static final String USER_INFO_WEB_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";
    //刷新网页access_token接口
    public static final String REFRESH_ACCESS_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=APPID&grant_type=refresh_token&refresh_token=REFRESH_TOKEN";
    //重置API调用次数
    public static final String RESET_API_CALL_COUNT_URL =  "https://api.weixin.qq.com/cgi-bin/clear_quota/v2?appid=APPID&appsecret=APPSECRET";
    //获取模板列表
    public static final String TEMPLATE_GET_ALL_URL = "https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token=ACCESS_TOKEN";

}
